package com.eagle.web.controller;


import com.eagle.web.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Properties;

/**
 * User {@link RestController}
 *
 * @author 小马哥
 * @since 2018/5/27
 */
//@RestController
@Controller
public class PropertiesRestController {

    @PostMapping(value = "/add/props",
            consumes = "text/properties;charset=UTF-8")
//	@PostMapping(value = "/echo/user")
    public Properties properties(@RequestBody Properties properties) {

    	return properties;
    }

	@PostMapping(value = "/add/propsresolver",
			consumes = "text/properties;charset=UTF-8")
	public Properties propertiesResolver(Properties properties) {

		return properties;
	}

}
